﻿Imports System.ComponentModel
Imports System.Collections.ObjectModel

Public Class Purchase

    Public Property PIPOID As Integer

    Public Property PIPONo As String

    Public Property VendorName As String = String.Empty

    Public Property PIPODate As Date

    Public Property VendorID As Integer

    Public Property SubTotal As Double

    Public Property OtherCharges As Double

    Public Property NetAmt As Double

    Public Property Remarks As String = String.Empty

    Public Property CreatedBy As Integer

    Dim _PIPOItems As New ObservableCollection(Of BillItems)
    Public ReadOnly Property PIPOItems As ObservableCollection(Of BillItems)
        Get
            Return _PIPOItems
        End Get
    End Property

    Dim _PIPODisTax As New ObservableCollection(Of BillDiscountTax)
    Public ReadOnly Property PIPODisTax As ObservableCollection(Of BillDiscountTax)
        Get
            Return _PIPODisTax
        End Get
    End Property

End Class

Public Enum PurchaseEnum
    Order
    Invoice
End Enum
